-- 中英文输入法自动切换
return {
  {
    "Kicamon/im-switch.nvim",
    enabled = true,
    config = function()
      require("im-switch").setup({
        input_toggle = 1, -- 设置为0则默认不自动切换，在insert模式下手动切换为中文后启动自动切换
        text = { -- 写文档
          enable = true,
          files = {
            "*.md",
            "*.txt",
          },
        },
        code = { -- 代码注释
          enable = true,
          files = { "*" },
        },
        -- 输入法配置
        en = "fcitx-remote -c",
        zh = "fcitx-remote -o",
        check = "fcitx-remote",
      })
    end,
  },
}
